var vm = new Vue({
    el:'#heros',
    data:{
        hero_list:[
            {
                'name' :'',
                'hp_max' :'',
                'hp_growth' :'',
                'hp_start' :'',
                'mp_max' :'',
                'mp_growth' :'',
                'mp_start' :'',
                'attack_max' :'',
                'attack_growth' :'',
                'attack_start' :'',
                'defense_max' :'',
                'defense_growth' :'',
                'defense_start' :'',
                'hp_5s_max' :'',
                'hp_5s_growth' :'',
                'hp_5s_start' :'',
                'mp_5s_max' :'',
                'mp_5s_growth' :'',
                'mp_5s_start' :'',
                'attack_speed_max' :'',
                'attack_range' :'',
                'role_main' :'',
                'role_assist' :'',
                'birthdate' :'',
            }
        ]

    },
    created:function(){
        this.getinfo()
    },
    methods:{
        getinfo:function () {
            axios.get('/king/get_heros/').then((response)=>{
                if(response.data.code==0){
                    alert(response.data.message)
                    console.log(response.data.data)
                    this.hero_list = response.data.data
                }
            })
        }
    },



})


